package com.gdut.huayan.entity.vo;

import com.gdut.huayan.entity.po.Charity;
import com.gdut.huayan.entity.po.Name;
import com.gdut.huayan.entity.po.OrderDetail;
import com.gdut.huayan.entity.po.Tablet;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class OrderCreateMap {

    @NotNull(message = "stockId不能为空")
    private Long stockId;

    @Valid
    private Tablet tablet;

    @Valid
    private List<Name> names;

    @Valid
    private Charity charity;

    @NotNull(message = "金额不能为空")
    private Integer moneyAmount;

    private Long limitMoneyId;

    private Boolean flag = false;

    private OrderDetail orderDetail;

}
